//类型转换
//
# include <stdio.h>
int main ()
{
	//整数 转 浮点数
	//0.9double   1int
	printf("%lu\n",sizeof(1?1:0.9));

	//3.14f -->float
	//3u --> unsigned int
	//
	//printf("%d\n",(-7 + 3u)>0); // 1
	//printf("%d\n",(-7 + 3u));
	//7: 00000000 00000000 00000000 00000111
	//~: 11111111 11111111 11111111 11111000
	//+1: 1111111 11111111 11111111 11111001
	//3:  00000000 00000000 00000000 00000000
	//+1: 111111111 111111111 11111111 11111100
	//
	
	//强制类型转换
	//强转 不改变存储区内容 不改变变量类型
	int a = 300;
	char c = (char)a;
	printf("c = %hhd\n",c);
	printf("sizeof(a) = %lu\n",sizeof(a));
	return 0;
}
